package cn.snow.boot.controller;

import cn.snow.boot.service.PublisherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuwanxiang
 * @version 2018/09/13
 */
@RestController
public class PublisherController {

    @Autowired
    private PublisherService publisherService;

    @RequestMapping("/publish/{string}")
    public String publish(@PathVariable("string") String string){

        return publisherService.publish(string);

    }


}
